﻿<Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:UI_Controls="clr-namespace:UI.Controls" xmlns:Custom="http://schemas.microsoft.com/wpf/2008/toolkit" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:Dictionaries="clr-namespace:UI.Controls.Dictionaries" x:Class="UI.Dialogs.PublisherDictionary"
    Title="Publisher" Height="480" Width="436" mc:Ignorable="d"
    Loaded="Window_Loaded" WindowStyle="ToolWindow">
	<Grid d:LayoutOverrides="Width">
		<Grid.RowDefinitions>
			<RowDefinition/>
			<RowDefinition Height="Auto"/>
			<RowDefinition Height="Auto"/>
		</Grid.RowDefinitions>
		<Custom:DataGrid x:Name="Publishers" SelectionChanged="Publishers_SelectionChanged" AutoGenerateColumns="False">
			<Custom:DataGrid.Columns>
				<Custom:DataGridTextColumn Header="Name" Binding="{Binding Name}" />
				<Custom:DataGridTextColumn Header="Type"/>
				<Custom:DataGridTextColumn Header="Founded"/>
				<Custom:DataGridTextColumn Header="Employees"/>
				<Custom:DataGridTextColumn Header="Industry"/>
				<Custom:DataGridTextColumn Header="Links"/>
				<Custom:DataGridTextColumn Header="Addresses"/>
			</Custom:DataGrid.Columns>
		</Custom:DataGrid>
		<GridSplitter HorizontalAlignment="Stretch" Grid.Row="1" MinHeight="10"/>
		<TabControl Grid.Row="2" TabStripPlacement="Left">
			<TabItem Header="Edit">
                <DockPanel d:LayoutOverrides="HorizontalMargin">
                    <ContentControl DockPanel.Dock="Bottom">
                        <Button x:Name="EditPub" HorizontalAlignment="Right" Width="75" Content="Save" Click="Button_Click"/>
                    </ContentControl>
                    <Dictionaries:PublisherDetailed x:Name="EditPublisher" />
                </DockPanel>
            </TabItem>
			<TabItem Header="Add">
				<DockPanel d:LayoutOverrides="HorizontalMargin">
					<ContentControl DockPanel.Dock="Bottom">
						<Button x:Name="AddPub" HorizontalAlignment="Right" Width="75" Content="Add" Click="Button_Click"/>
					</ContentControl>
					<Dictionaries:PublisherDetailed x:Name="AddPublisher" />
				</DockPanel>
			</TabItem>
		</TabControl>
	</Grid>
</Window>
